﻿using Caliburn.Micro;

namespace Spotted.ViewModels
{
    public abstract class ViewModelBase : PropertyChangedBase
    {
        private readonly INavigationService _navigationService;

        protected ViewModelBase(INavigationService navigationService)
        {
            _navigationService = navigationService;
        }

        public void GoBack()
        {
            _navigationService.GoBack();
        }
    }
}
